package com.xsmart.oa.api.mall.commom;

import com.xsmart.common.entity.RequestBean;
import com.xsmart.oa.services.mall.commom.RegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;

@Controller
@RequestMapping("/api")
public class RegionController {

    @Autowired
    RegionService regionService;

    @RequestMapping(value = "/v1/RegionService/getRegionList", method = RequestMethod.POST)
    @ResponseBody
    public Object getRegionList(@ModelAttribute RequestBean requestBean, HttpServletRequest request) {
        return regionService.getRegionList(requestBean);
    }

}
